import apiClient from "@/utils/request";

/**
 * 注册
 * @param {*} data account, password, nickname
 * @returns 
 */
export const register = (data) => {
    return apiClient.post('v1/register', data);
};

/**
 * 登录
 * @param {*} data account, password
 * @returns 
 */
export const login = (data) => {
    return apiClient.post('v1/login', data);
};